import request from '@/utils/request'

// 查询企业设备列表
export function listOpmEnvEnterpriseEquipment(query) {
  return request({
    url: '/environment/opmEnvEnterpriseEquipment/list',
    method: 'get',
    params: query
  })
}

// 查询企业设备详细
export function getOpmEnvEnterpriseEquipment(id) {
  return request({
    url: '/environment/opmEnvEnterpriseEquipment/' + id,
    method: 'get'
  })
}

// 新增企业设备
export function addOpmEnvEnterpriseEquipment(data) {
  return request({
    url: '/environment/opmEnvEnterpriseEquipment',
    method: 'post',
    data: data
  })
}

// 修改企业设备
export function updateOpmEnvEnterpriseEquipment(data) {
  return request({
    url: '/environment/opmEnvEnterpriseEquipment',
    method: 'put',
    data: data
  })
}

// 删除企业设备
export function delOpmEnvEnterpriseEquipment(id) {
  return request({
    url: '/environment/opmEnvEnterpriseEquipment/' + id,
    method: 'delete'
  })
}
